package TwoAgain;

import java.time.LocalDate;

public class Employee {
    private String code;
    private String name;
    private LocalDate data;
    private int salary;

    public Employee(String code, String name, LocalDate data, int salary) {
        this.code = code;
        this.name = name;
        this.data = data;
        this.salary = salary;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getData() {
        return data;
    }

    public void setData(LocalDate data) {
        this.data = data;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", data=" + data +
                ", salary=" + salary +
                '}';
    }
}
